import request from '@/utils/request'

// 查询质量目标标准列表
export function listNcQualityGoalStandard(query) {
  return request({
    url: '/business/NcQualityGoalStandard/list',
    method: 'get',
    params: query
  })
}

// 查询质量目标标准详细
export function getNcQualityGoalStandard(id) {
  return request({
    url: '/business/NcQualityGoalStandard/' + id,
    method: 'get'
  })
}

// 新增质量目标标准
export function addNcQualityGoalStandard(data) {
  return request({
    url: '/business/NcQualityGoalStandard',
    method: 'post',
    data: data
  })
}

// 修改质量目标标准
export function updateNcQualityGoalStandard(data) {
  return request({
    url: '/business/NcQualityGoalStandard',
    method: 'put',
    data: data
  })
}

// 删除质量目标标准
export function delNcQualityGoalStandard(id) {
  return request({
    url: '/business/NcQualityGoalStandard/' + id,
    method: 'delete'
  })
}
